package com.shunbo.convenient.service.impl;

import com.shunbo.convenient.dao.AndroidMapper;
import com.shunbo.convenient.service.AndroidService;
import com.shunbo.convenient.vo.AndroidVersion;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author weizhuang
 */

@Service
@Transactional
public class AndroidServiceImpl implements AndroidService {

    @Resource
    private AndroidMapper androidMapper;

    @Override
    public Integer save(AndroidVersion obj) {
        return androidMapper.save(obj);
    }

    @Override
    public Integer update(AndroidVersion obj) {
        return androidMapper.update(obj);
    }

    @Override
    public Integer delete(String obj) {
        return androidMapper.delete(obj);
    }

    @Override
    public AndroidVersion findById(String obj) {
        return androidMapper.findById(obj);
    }

    @Override
    public List<AndroidVersion> findAll(AndroidVersion obj) {
        return androidMapper.findAll(obj);
    }

    @Override
    public List<AndroidVersion> findByVersionId(AndroidVersion androidVersion) {
        return androidMapper.findByVersionId(androidVersion);
    }
}
